<?php
namespace app\admin\controller;
use think\Controller;
class Base extends Controller{
    //登录状态确认
    public function _initialize()
    {
        if (!session('uid')){
            $this->error("请先登录后再进行操作",'Index/index');
        }
    }
}
